package com.gollum.web.controller.system;

import com.gollum.common.domain.response.RestResponse;
import com.gollum.system.service.SysDeptService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 组织架构Controller
 *
 * @author Herther
 * @createTime 2022年10月11日 22:04:00
 * @since 1.0.0
 */
@Api(tags = "系统管理-组织架构")
@RestController
@RequestMapping("/dept")
public class SysDeptController {


    @Autowired
    protected SysDeptService sysDeptService;

    @PostMapping("/deptTreeList")
    @ApiOperation(value = "前端组织架构树")
    public RestResponse deptTreeList() {
        return RestResponse.success(sysDeptService.getTreeList());
    }

}
